{% extends "master/layout.html" %}
{% block content %}
        <div class="content">
        {% block formTitle %}
            <form method="post" action="/cmdb/index/wf/update/sn={{sn}}">
        {% endblock %}
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card p-4">
                            <div class="card-header bg-light">
                                更新流程<label style="color: red;">{{ status }}</label>
                            </div>

                            <div class="card-body">


                                    <div class="col-md-7">
                                        <div class="form-group">
                                            {% for item in sponsor %}
                                            <label for="sponsor" class="form-control-label require">发起人</label>
                                            <input type="text" id="sponsor" class="form-control" readonly placeholder="发起人" name="sponsor" value={{ item.sponsor }}>
                                            {% endfor %}
                                        </div>
                                    </div>

                                    <div class="col-md-7">
                                        <div class="form-group">
                                            {% for item in business %}
                                            <label for="business" class="form-control-label require">业务单元</label>
                                            <input type="text" id="business" class="form-control" readonly placeholder="业务单元" name="business" value={{ item.name }}>
                                            {% endfor %}
                                        </div>
                                    </div>

                                    <div class="col-md-7">
                                        <div class="form-group">
                                            {% for item in approval %}
                                            <label for="approval" class="form-control-label require">审批人</label>
                                            <input type="text" id="approval" class="form-control" readonly placeholder="审批人" name="approval" value={{ item.username }}>
                                            {% endfor %}
                                        </div>
                                    </div>

                                    <div class="col-md-7">
                                        <div class="form-group">
                                            {% for item in type %}
                                            <label for="type" class="form-control-label require">工单类型</label>
                                            <input type="text" id="type" class="form-control" readonly placeholder="工单类型" name="type" value={{ item.name }}>
                                            {% endfor %}
                                        </div>
                                    </div>

                                    <div class="col-md-7">
                                        <div class="form-group">
                                            {% for item in title %}
                                            <label for="title" class="form-control-label require">标题</label>
                                            <input type="text" id="title" class="form-control" value="{{item.title}}" name="title">
                                        {% endfor %}
                                        </div>
                                    </div>


                                    <div class="col-md-7">
                                        <div class="form-group">
                                            {% for item in content %}
                                            <label for="content" class="require">工单内容</label>
                                            <textarea id="content" class="form-control" placeholder="工单内容" name="content">{{ item.content }}</textarea>
                                            {% endfor %}
                                        </div>
                                    </div>







                                    <div class="col-md-7">
                                        <div class="form-group">
                                            <label for="textarea">备注</label>
                                            {% for item in memo %}
                                            <textarea id="textarea" class="form-control" rows="6" name="memo">{{item.memo}}</textarea>
                                            {% endfor %}
                                        </div>
                                    </div>

                            </div>

                            <div class="card-footer p-4">
                                <div class="row">
                                    <div class="col-5">
                                        <button type="submit" class="btn btn-primary px-5">更新</button>
                                    </div>
                                    <div class="col-5">
                                        <a href="/cmdb/index/wf/requests/" class="btn btn-outline-primary px-5">取消</a>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
    {% block formFooter %}
        </form>
    {% endblock %}
        </div>
{% endblock %}
{% block javascript %}
    <script>
    </script>
{% endblock %}